took it into their head

v. 凭空地产生想法(心血来潮地认为;想要)